<!--  公共组件  标题-->
<template>
<div>
  <van-nav-bar
      :title='titleName'
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
  />
</div>
</template>

<script>
export default {
  name: "TitleBack",
  props:{
    titleName:String
  },
  data(){
    return{

    }
  },
  methods:{
    onClickLeft(){
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>

</style>